package com.gupaoedu.vip.beforemodify;

import com.gupaoedu.vip.beforemodify.model.dto.MemberDto;
import com.gupaoedu.vip.beforemodify.model.po.MemberPO;
import com.gupaoedu.vip.beforemodify.service.MemberService;
import com.gupaoedu.vip.beforemodify.service.impl.MemberServiceImpl;

public class BeforeModifyTest {

    public static void main(String[] args) {
        MemberService memberService = new MemberServiceImpl();
        MemberPO memberPO = memberService.getMemberPO(1L);
        MemberDto memberDto = new MemberDto();
        memberDto.setId(memberPO.getId());
        memberDto.setName(memberPO.getName());
        memberDto.setAge(memberPO.getAge());
        memberDto.setTel(memberPO.getTel());
        memberDto.setAddress(memberPO.getAddress());
        memberDto.setCityId(memberPO.getCityId());
        memberDto.setRemark(memberPO.getRemark());
        int count = memberService.getCouponCount(memberDto);
        System.out.println(count);
    }
}
